Avoid superfluous registering of signals. (Bug#10807)
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 7 Mar 2012 07:48:16 +0000 (08:48 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 7 Mar 2012 07:48:16 +0000 (08:48 +0100)
commitfa13f89cebdaa4eb7fc8f256bc92fefb50849291
tree24dd3df105f161c650453bd9d5ea6e1eac68db28
parentb259638d806a5facd028595a0614f6e4face4ed9
Avoid superfluous registering of signals.  (Bug#10807)

* notifications.el (notifications-on-action-object)
(notifications-on-close-object): New defvars.
(notifications-on-action-signal, notifications-on-closed-signal):
Unregister the signal if not needed any longer.
(notifications-notify): Register `notifications-action-signal' or
`notifications-closed-signal', if :on-action or :on-close has been
passed as argument.
lisp/ChangeLog
lisp/notifications.el